package com.ngkj.zmfptwebsocket.chatModule.mapper.read;

import com.ngkj.zmfptCommon.common.bean.ChatMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ChenHN
 * @since 2021/11/29 creation
 **/
@Mapper
public interface ChatReadMapper {

    List<ChatMessage> getTalkingMessage(@Param("userId") String userId,@Param("toUserId") String toUserId);

    List<ChatMessage> addTalkingMessage(@Param("sendTime") String sendTime,@Param("userId") String userId,@Param("toUserId") String toUserId);

    List<Map<String,Object>> getMessageList(@Param("userId") Long userId);
}
